package projeto1;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JButton;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.text.html.StyleSheet;
import javax.swing.AbstractAction;
import java.awt.event.ActionEvent;
import javax.swing.Action;
import java.awt.event.ActionListener;
import java.awt.Color;
import javax.swing.ImageIcon;
import java.awt.SystemColor;


public class Main extends JFrame {

	private JPanel principal;
	
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Main frame = new Main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Main() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 929, 692);
		principal = new JPanel();
		principal.setBackground(Color.WHITE);
		principal.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(principal);
		principal.setLayout(null);
		
		JLabel lblBemVindoAo = new JLabel("Bem vindo ao sistema TRANSF\u00C1CIL");
		lblBemVindoAo.setForeground(Color.BLUE);
		lblBemVindoAo.setHorizontalAlignment(SwingConstants.CENTER);
		lblBemVindoAo.setFont(new Font("Arial", Font.BOLD, 32));
		lblBemVindoAo.setBounds(-55, 10, 1024, 78);
		principal.add(lblBemVindoAo);
		
		JButton btnLinha = new JButton("Linha 01");
		btnLinha.setForeground(Color.RED);
		btnLinha.setFont(new Font("Arial", Font.PLAIN, 20));
		btnLinha.setBounds(490, 141, 308, 58);
		principal.add(btnLinha);
		
		JLabel lblPorFavorEscolha = new JLabel("Por favor, escolha a linha desejada:");
		lblPorFavorEscolha.setForeground(Color.BLUE);
		lblPorFavorEscolha.setFont(new Font("Arial", Font.PLAIN, 24));
		lblPorFavorEscolha.setBounds(10, 117, 692, 24);
		principal.add(lblPorFavorEscolha);
		
		JButton btnLinha_1 = new JButton("Linha 02");
		btnLinha_1.setForeground(Color.RED);
		btnLinha_1.setFont(new Font("Arial", Font.PLAIN, 20));
		btnLinha_1.setBounds(490, 236, 308, 58);
		principal.add(btnLinha_1);
		
		JButton btnManuteno = new JButton("Administrador");
		btnManuteno.setForeground(Color.RED);
		btnManuteno.addActionListener(new ActionListener() {
			//Chama login
			public void actionPerformed(ActionEvent e) {
				LoginAdm login = new LoginAdm();
				login.setVisible(true);
			}
		});
		btnManuteno.setFont(new Font("Arial", Font.PLAIN, 15));
		btnManuteno.setBounds(726, 535, 153, 27);
		principal.add(btnManuteno);
		
		JLabel lblNewLabel = new JLabel("");
		lblNewLabel.setIcon(new ImageIcon("C:\\Users\\vania\\Desktop\\foto onibus.jpg"));
		lblNewLabel.setBounds(10, 305, 893, 361);
		principal.add(lblNewLabel);
	}
}
